#!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'shawn'

prices = {
    ' ACME ' : 45.23,
    ' AAPL ' : 612.78,
    ' IBM ' : 205.55,
    ' HPQ ' : 37.20,
    ' FB ' : 10.75
}

"""
字典的运算
"""

print(prices.values(),prices.keys())

#查找字典的最大值和最小值
print(min(zip(prices.values(),prices.keys())))
print(max(zip(prices.values(),prices.keys())))

print(sorted(zip(prices.values(),prices.keys())))


list1 = [11,22]
list2 = [{'aa':88},{'bb':99}]

print(sorted(zip(list1,list2)))